package com.medical.service.impl;

import com.google.protobuf.Message;
import com.medical.mapper.WarningMapper;
import com.medical.pojo.Warning;
import com.medical.service.WarningService;
import com.medical.vo.Rmed;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarningServiceImpl implements WarningService {
    @Autowired
    private WarningMapper warningMapper;
    @Override
    public List<Warning> findAll() {
        return warningMapper.findAll();
    }

    @Override
    public Rmed updateStatus(Integer id) {
        warningMapper.updateStatus(id);

        return Rmed.suceess();
    }
}
